Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prompt fiddle2 #741

Merged
merged 5 commits into from
Jul 2, 2024
Merged

prompt fiddle2 #741

merged 5 commits into from
Jul 2, 2024

Conversation

aaronvg
Copy link
Contributor

@aaronvg aaronvg commented Jul 2, 2024

  • new promptfiddle files
  • Add prompt fiddle project with all examples

Copy link

vercel bot commented Jul 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
baml ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 2, 2024 11:49pm

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

  • Added new prompt fiddle files and examples in /typescript/fiddle-frontend/public/_examples/all-projects/
  • Updated integ-tests/baml_src/fiddle-examples/images/image.baml with new DescribeImage2 function
  • Enhanced typescript/fiddle-frontend/app/[project_id]/_components/CodeMirrorEditor.tsx with hyperlink functionality
  • Modified typescript/fiddle-frontend/app/[project_id]/_components/ExploreProjects.tsx to remove example project loading
  • Updated project loading logic in typescript/fiddle-frontend/lib/loadProject.ts

27 file(s) reviewed, 5 comment(s)
Edit PR Review Bot Settings

Comment on lines 8 to +9
export const ExploreProjects = () => {
const [projectGroups, setProjectGroups] = useState<BamlProjectsGroupings | null>(null)

useEffect(() => {
const fetchProjects = async () => {
const projects = await loadExampleProjects()
setProjectGroups(projects)
}
fetchProjects()
}, [])

return (
<div className='flex flex-col w-full h-full'>
<SheetHeader>
<SheetTitle className='text-2xl'>Prompt Fiddle Examples</SheetTitle>
<SheetDescription className='text-base'>
Prompt Fiddle uses BAML -- a configuration language for LLM functions. Here are some example projects to get
you started.
</SheetDescription>
</SheetHeader>

<div className='overflow-y-auto'>
{projectGroups ? (
<div className='flex flex-col gap-y-4'>
<ExampleCarousel title='Intros' projects={projectGroups.intros} />
{/* <ExampleCarousel title="Advanced Prompt Syntax" projects={projectGroups.advancedPromptSyntax} /> */}
<ExampleCarousel title='Prompt Engineering' projects={projectGroups.promptEngineering} />
</div>
) : (
<div>Loading...</div>
)}
</div>
</div>
)
return null
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧠 logic: Returning null here removes the entire functionality of loading and displaying example projects.

args {
message {
userName "Alice"
message "I can't access my account using my login credentials. I havent received the promised reset password email. Please help."
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📚 spelling: Typo in the test message: 'havent' should be 'haven't'.

@@ -0,0 +1,17 @@
// You can use the fallback provider to add more resilliancy to your application.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📚 spelling: Typo in 'resilliancy'. Correct spelling is 'resiliency'.

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

(updates since last review)

  • Minor comment corrections in typescript/fiddle-frontend/public/_examples/all-projects/baml_src/multi-modal/audio-input.baml
  • Added AudioInput function to process audio input
  • Included TestURLAudioInput test case for AudioInput function
  • Minor comment corrections in typescript/fiddle-frontend/public/_examples/all-projects/baml_src/multi-modal/image-input.baml
  • Added DescribeImage function and ImageTest test case for image description

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

@aaronvg aaronvg merged commit f80da1e into canary Jul 2, 2024
8 checks passed
@aaronvg aaronvg deleted the prompt-fiddle2 branch July 2, 2024 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants